package com.example.logaspecttest.controller;



import com.example.logaspect.annotation.LogRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/users")
public class UserController {

    @LogRecord(description = "获取用户信息",level = LogRecord.LogLevel.WARN)
    @GetMapping("/{id}")
    public String getUser(@PathVariable Long id) {
        System.out.println(id);
        return  "id"+id;
    }

}
